package com.kaifamiao.demo.d0726;

public class Demo03 {

    public static void main(String[] args) {
        // 对象数组 数组中每个元素都是对象
        Person[] ps = new Person[5];

        for (int i = 0 ; i < ps.length; i ++){
            ps[i] = new Person();
            System.out.println(ps[i]);
        }

        ps[1].name = "Tom";

        ps[1].show();
    }
}
